#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxDateTime(DateTime value)
{
	System_DateTime *box = new(,System_DateTime);
	box->m_value = value;
	return (System_Object *)box;
}

internal DateTime ___unboxDateTime(System_Object *value)
{
	return ((System_DateTime *)value)->m_value;
}

//+ type
Implement_Type(System_DateTime,System_Object,)
Implement_DefaultCtor(System_DateTime,System_Object)
System_Type _DateTimeType = { (__typeCtor)null, L"DateTime", (__typeBoxer)&___boxDateTime, (__typeUnboxer)&___unboxDateTime, (char*)default(DateTime), _TypeFlags_Value };
Declare_System(System_DateTime, DateTime)
Implement_System(System_DateTime, DateTime)